surrender oneself to the court